package bpm.dao.impl.foreignactive;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.foreignactive.ForeignActiveRecord;

public class ForeignActiveRecordRowMapper implements RowMapper{

	public Object mapRow(ResultSet rs, int i) throws SQLException {
		
		ForeignActiveRecord far=new ForeignActiveRecord();
		far.setId(rs.getString("ID"));far.setMainid(rs.getString("MAINID"));far.setUserid(rs.getString("USERID"));
		far.setUsername(rs.getString("USERNAME"));far.setUserdeptid(rs.getString("USERDEPTID"));
		far.setUserdeptname(rs.getString("USERDEPTNAME"));far.setLoginip(rs.getString("LOGINIP"));
		far.setOperdate(rs.getDate("OPERDATE"));far.setDelflag(rs.getString("DELFLAG"));
		far.setTitle(rs.getString("TITLE"));far.setMeetinghour(rs.getString("MEETINGHOUR"));
		far.setMeetingminu(rs.getString("MEETINGMINU"));far.setMeetingplace(rs.getString("MEETINGPLACE"));
		far.setMeetinglanguage(rs.getString("MEETINGLANGUAGE"));far.setPersonnum(rs.getString("PERSONNUM"));
		far.setTranslator(rs.getString("TRANSLATOR"));far.setChinajoiner(rs.getString("CHINAJOINER"));
		far.setChinaattend(rs.getString("CHINAATTEND"));far.setMaindept(rs.getString("MAINDEPT"));
		far.setDrafter(rs.getString("DRAFTER"));far.setDraftertel(rs.getString("DRAFTERTEL"));
		far.setDraftdate(rs.getDate("DRAFTDATE"));far.setForeignjoiner(rs.getString("FOREIGNJOINER"));
		far.setForeignduty(rs.getString("FOREIGNDUTY"));far.setForeignorg(rs.getString("FOREIGNORG"));
		far.setForeigncountry(rs.getString("FOREIGNCOUNTRY"));far.setForeignattend(rs.getString("FOREIGNATTEND"));
		far.setForeigncar(rs.getString("FOREIGNCAR"));far.setContactunit(rs.getString("CONTACTUNIT"));
		far.setContact(rs.getString("CONTACT"));far.setPhone(rs.getString("PHONE"));
		far.setActivitybrief(rs.getString("ACTIVITYBRIEF"));far.setMeethistory(rs.getString("MEETHISTORY"));
		far.setBackground(rs.getString("BACKGROUND"));far.setInteropinion(rs.getString("INTEROPINION"));
		far.setAttachname(rs.getString("ATTACHNAME"));far.setOperuser(rs.getString("OPERUSER"));				
		far.setFormtype(rs.getString("FORMTYPE"));
		far.setConStatus(rs.getString("CONSTATUS"));far.setActivitystatus(rs.getString("ACTIVITYSTATUS"));
		far.setChangeexplain(rs.getString("CHANGEEXPLAIN"));
		far.setMeetingdate(rs.getDate("MEETINGDATE"));
		far.setMeetingweek(rs.getString("MEETINGWEEK"));
		far.setLeaders(rs.getString("LEADERS"));
		return far;
	}

}
